(function() {
	
	if ('serviceWorker' in navigator) {  
		navigator.serviceWorker.register('/service-worker.js', {scope: '/'}).then(function(registration) {  
			console.log('ServiceWorker registration successful with scope: ',    registration.scope);  
		}).catch(function(err) {  
	    	console.log('ServiceWorker registration failed: ', err);  
		});  
	}
})();
